package com.bite.springbook.enums;

import lombok.AllArgsConstructor;
import lombok.Getter;

@AllArgsConstructor
public enum ResultCodeEnum {
    //成功 200
    //未登入 -1
    //后端发生异常

    SUCCESS(200, "成功"),
    NOLOGIN(-1, "未登入"),
    FAIL(-2 , "后端发生异常");

    @Getter
    private int code;
    @Getter
    private String name;
}
